package com.base.user.entity;

import java.util.Map;

import com.mysteel.core.Entity;

public class Administrator implements Entity
{
	public static long getSerialversionuid()
	{
		return serialVersionUID;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 6041501373187742088L;

	private long id;      			//主键ID
	
	private long parentId;			//父ID
	private String userName;		//登录名
	private String password;		//密码
	private boolean superAdmin;		//是否是超级管理
	
	private String name;			//用户姓名
	private int age;				//年龄
	private String gender;			//性别
	private String mobile;			//电话
	private String email;			//邮箱
	private String qxId;			//权限Id  如  ,19999,888,222
	private Map<String,Object> qx;	//权限
	
	private long createTime;		//创建时间
	private long lastAccess;		//最后登录时间
	private boolean status;
	
	public boolean isStatus()
	{
		return status;
	}

	public void setStatus(boolean status)
	{
		this.status = status;
	}

	public Administrator()
	{
		super ();
	}

	public Administrator(long id, long parentId, String userName,
			String password, boolean superAdmin, String name, int age,
			String gender, String mobile, String email, String qxId,
			Map<String, Object> qx, long createTime, long lastAccess,boolean status)
	{
		super ();
		this.id = id;
		this.parentId = parentId;
		this.userName = userName;
		this.password = password;
		this.superAdmin = superAdmin;
		this.name = name;
		this.age = age;
		this.gender = gender;
		this.mobile = mobile;
		this.email = email;
		this.qxId = qxId;
		this.qx = qx;
		this.createTime = createTime;
		this.lastAccess = lastAccess;
		this.status = status;
	}


	public boolean isSuperAdmin()
	{
		return superAdmin;
	}



	public long getCreateTime()
	{
		return createTime;
	}



	public void setCreateTime(long createTime)
	{
		this.createTime = createTime;
	}



	public long getLastAccess()
	{
		return lastAccess;
	}



	public void setLastAccess(long lastAccess)
	{
		this.lastAccess = lastAccess;
	}



	public void setSuperAdmin(boolean superAdmin)
	{
		this.superAdmin = superAdmin;
	}



	public Map<String, Object> getQx()
	{
		return qx;
	}
	
	

	public String getQxId()
	{
		return qxId;
	}



	public void setQxId(String qxId)
	{
		this.qxId = qxId;
	}



	public void setQx(Map<String, Object> qx)
	{
		this.qx = qx;
	}



	public long getId()
	{
		return id;
	}

	public void setId(long id)
	{
		this.id = id;
	}

	public long getParentId()
	{
		return parentId;
	}

	public void setParentId(long parentId)
	{
		this.parentId = parentId;
	}

	public String getUserName()
	{
		return userName;
	}

	public void setUserName(String userName)
	{
		this.userName = userName;
	}

	public String getPassword()
	{
		return password;
	}

	public void setPassword(String password)
	{
		this.password = password;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public int getAge()
	{
		return age;
	}

	public void setAge(int age)
	{
		this.age = age;
	}

	public String getGender()
	{
		return gender;
	}

	public void setGender(String gender)
	{
		this.gender = gender;
	}

	public String getMobile()
	{
		return mobile;
	}

	public void setMobile(String mobile)
	{
		this.mobile = mobile;
	}

	public String getEmail()
	{
		return email;
	}

	public void setEmail(String email)
	{
		this.email = email;
	}
}
